<template>
  <div>
    我是首页
    <button @click="handleClick(5,1)">点击触发方法</button>
    <!-- <SvgIcon name="plus" width="50" height="50" color="red"></SvgIcon> -->
  </div>
</template>

<script setup lang="ts">
import {antiShake} from '@/utils/utils'

const handleClick=antiShake(test,2000,true)
function test(){
  console.log(1)
}
</script>

<style scoped>

</style>